import request from '@/utils/request'


export function getProductList(data) {
	return request({
		url: "/product/getProductList",
		data,
	});
}
export function getProviderList(data) {
	return request({
		url: "/product/getProviderList",
		data,
	});
}
//新增供应商
export function addProvider(data) {
	return request({
		url: "/product/addProvider",
		data,
	});
}
//删除供应商
export function delProvider(data) {
	return request({
		url: "/product/delProvider",
		data,
	});
}

//修改供应商
export function editProvider(data) {
	return request({
		url: "/product/updateProvider",
		data,
	});
}
//获取分类级别
export function getCategorylevel(data) {
	return request({
		url: "/admin/getDictType",
		data,
	});
}

export function getProductOrderList(data) {
	return request({
		url: "/product/getProductOrderList",
		data,
	});
}

// 新增订单
export function addProductOrder(data) {
	return request({
		url: "/product/addProductOrder",
		data,
	});
}

// 修改订单
export function editProductOrder(data) {
	return request({
		url: "/product/updateProductOrder",
		data,
	});
}

// 删除订单
export function delProductOrder(data) {
	return request({
		url: "/product/delProductOrder",
		data,
	});
}

export function addProduct(data) {
	return request({
		url: "/product/addProduct",
		data,
	});
}

export function editProduct(data) {
	return request({
		url: "/product/updateProduct",
		data,
	});
}
export function editProductStoreNum(data) {
	return request({
		url: "/product/editProductStoreNum",
		data,
	});
}

export function delProduct(data) {
	return request({
		url: "/product/delProduct",
		data,
	});
}